package sd

import (
	"log"
	"os"

	"go.etcd.io/etcd/clientv3"
)

var (
	scheme            = "svc" // default scheme
	dailTimeout int64 = 10    // default etcd dail timeout seconds
	sdlog             = log.New(os.Stderr, "[sd-etcd-v3] ", log.LstdFlags|log.Lmicroseconds|log.Lshortfile)
	cli         *clientv3.Client
)

// SetScheme func for change global scheme
func SetScheme(schemeNew string) {
	scheme = schemeNew
}

// SetDailTimeout func for change global dailTimeout
func SetDailTimeout(dailTimeoutNew int64) {
	dailTimeout = dailTimeoutNew
}
